package conf

import "github.com/spf13/viper"

type Wang struct {
	Mysql
	Redis
}
type Mysql struct {
	Name    string
	Dialect string
}
type Redis struct {
	Addr     string
	Password string
	DB       int
}

var Wangl Wang

func ViperShuo() {
	viper.SetConfigFile("conf/conf.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&Wangl)
}
